import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Pointcut;

/**
 * Created by yume on 15/12/11.
 */
@Aspect
public class YLog {

    @Pointcut("execution(* *(..))")
    public void method(){}

    public Object testMethod(ProceedingJoinPoint joinPoint) throws Throwable {
        System.out.println("testMethod: " + joinPoint.getSourceLocation().toString());
        return joinPoint.proceed();
    }
}
